<%#
# To change this template, choose Tools | Templates
# and open the template in the editor.
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Wordpress Themes  </title>
    <%= stylesheet_link_tag '/stylesheets/theme/style.css', "will_paginate", "scaffold", :media => "all" %>
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://test.wpthemesfree.com/?feed=rss2" />
    <link rel="alternate" type="text/xml" title="RSS .92" href="http://test.wpthemesfree.com/?feed=rss" />
    <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="http://test.wpthemesfree.com/?feed=atom" />
    <link rel="pingback" href="http://test.wpthemesfree.com/xmlrpc.php" />
    
    <link rel='archives' title='October 2005' href='http://test.wpthemesfree.com/?m=200510' />
    
    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://test.wpthemesfree.com/xmlrpc.php?rsd" />
    <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://test.wpthemesfree.com/wp-includes/wlwmanifest.xml" /> 
  </head>
  <body>
    <div id="page">	
      <div id="header">
        <h1><%= link_to @blog.title, {:action => "index", :id => nil} %></h1>
        <p><%= @blog.subtitle %></p>		
      </div>
      
      <div id="content">  
        <%= yield :layout %>
                                                
                                                
        <div class="divider"></div>
        
        <div class="bottomnav">
          <div class="alignleft"></div>
          <div class="alignright"></div>
        </div>
        
        
      </div>
      
      <div id="rightcol"> 
        <ul>
          
          <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.-->

          <li>
            <h2>Author</h2>
            <p><%= @blog.about %></p>
          </li>
          
          <li>
            
          </li>
          
          
          <li>
            <h2>Tag Cloud</h2>
            <div id="tag">
              <% tag_cloud @blog.entries.tag_counts, %w(css1 css2 css3 css4) do |tag, css_class| %>                 
                <%= link_to tag.name, { :action => "tag", :id => tag.name }, :class => css_class %>               
              <% end %>      
            </div>       
          </li>
          
          <li>
            <h2>Latest</h2>
            <ul>
              <% for entry in @blog.latest_entries(@blog.recent_entries) %>                   
                <li><%= link_to entry.title, {:action => :show, :id => entry.id } %></li>                 
              <% end %> 
            </ul>
          </li>
          
          <li>
            <h2>Comment</h2>
            <ul>
              <% for comment in @blog.latest_comments(@blog.recent_comments) %>         
                <li><%= link_to comment.name, comment.website %> on <%= link_to truncate(comment.commentable.title, 30, "..."), {:action => :show, :id => comment.commentable_id, :anchor => "comment-#{comment.id}"} %></li>
              <% end %>
            </ul>
          </li>
          
          <li>
            <h2>Archives</h2>  
            <ul>
              <% for entry in @blog.latest_archive_links %>                   
                <li><%= link_to "#{entry[:year]}/#{entry[:month]}", {:action => :archive, :year => entry[:year], :month => entry[:month]} %></li>                 
              <% end %>
            </ul>       
          </li>
          
          
          <li>
            <h2>Categories</h2>
            <ul>
              <% for category in @blog.categories %>
                <li class="cat-item"><%= link_to "#{category.name} (#{category.entries_count})", {:action => "category", :id => category.id} %></li>
              <% end %>               
            </ul>
          </li>
          
          <li id="linkcat-2" class="linkcat"><h2>Blogroll</h2>
            <ul>
              <% for link in @blog.links %>   
                <li><%= link_to link.name, link.url, {:target => '_blank'} %></li>
              <% end %>                     
            </ul>
          </li>
          
          <% for block in @blog.visible_blocks %>
          <li>
            <h2><%= block.name %></h2>
            <div><%= block.content %></div>
          </li>
          <% end %>
                              
          <%= @blog.custom %>
                    
          <li>
            <h2>Meta</h2>
            <ul>
              <li><%= link_to "Login", {:controller => :user, :action => :login} %></li>
              <li><%= link_to '<abbr title="Really Simple Syndication">RSS</abbr> Entries', {:action => :feed}, {:title => "Syndicate this site using RSS 2.0"} %></li>
              <li><%= link_to '<abbr title="Really Simple Syndication">RSS</abbr> Comments', {:action => :comment_feed}, {:title => "Syndicate this site using RSS 2.0"} %></li>
              
            </ul>    
          </li>
        </ul> 
      </div>
      
      <div id="footer">
        <hr />
        <p>
          
          Demo WPT is proudly powered by 
          <a href="http://wordpress.org/">WordPress</a> 
          . Designed by <a href="http://eisabainyo.net/weblog">esn studio</a> .  <a href="http://eisabainyo.net/weblog/wordpress-themes/">WordPress Themes</a> 
          . Download from <a href="http://wordpresstheme.cn">WPT</a>
          . <a href="feed:http://demo.wordpresstheme.cn/feed">Entries (RSS)</a>
          
          . <a href="feed:http://demo.wordpresstheme.cn/comments/feed">Comments (RSS)</a> 
          . <!-- 21 queries. 0�106 seconds. -->
        </p>
      </div>
      
      <form method="get" id="searchform" action="http://demo.wordpresstheme.cn/">
        <div><input type="text" value="" name="s" id="s" style="width:120px;" />
          <input type="submit" id="searchsubmit" value="Search" />
        </div>
      </form>
    </div>
    
  </body>
</html>
